﻿<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<!-- 包含公共的JSP代码片段 -->
	
<title>无线点餐平台</title>



<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="${ctx}/js/jquery.js"></script>
<script type="text/javascript" src="${ctx}/js/page_common.js"></script>
<link href="${ctx}/css/common_style_blue.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="${ctx}/css/index_1.css" />
</head>
<body>
<!-- 页面标题 -->
<div id="TitleArea">
	<div id="TitleArea_Head"></div>
	<div id="TitleArea_Title">
		<div id="TitleArea_Title_Content">
			<img border="0" width="13" height="13" src="${ctx}/images/title_arrow.gif"/> 菜品列表
		</div>
    </div>
	<div id="TitleArea_End"></div>
</div>
<!-- 主内容区域（数据列表或表单显示） -->
<div id="MainArea">
    <table class="MainArea_Content" align="center" cellspacing="0" cellpadding="0">
        <%--<!-- 表头-->--%>
        <thead>
            <tr align="center" valign="middle" id="TableTitle">
				<td>菜编号</td>
				<td>菜名</td>
				<td>所属菜系</td>
				<td>价格</td>
                <td>会员价格</td>
				<td>操作</td>
			</tr>
		</thead>
		<%--<!--显示数据列表 -->--%>
        <tbody id="TableData" style="text-align: center">
		<c:forEach items="${foodList}" var="food">
			<tr>
				<td>${food.foodId}</td>
				<td>${food.foodName}</td>
				<td>${food.foodType.typeName}</td>
				<td>${food.foodPrice}</td>
				<td>${food.foodMemberPrice}</td>

				<td>
					<a href="${ctx}/updateFood?foodId=${food.foodId}">编辑</a>
					<a href="${ctx}/delFood/${food.foodId}">删除</a>
				</td>
			</tr>
		</c:forEach>
        </tbody>
    </table>
	
   <!-- 其他功能超链接 -->
	<div id="TableTail" align="center">
		<div class="FunctionButton">
			<a href="${pageContext.request.contextPath }/saveFood">添加</a>
		</div>
    </div> 
</div>
</body>
</html>
